import jsonrpcclient
'''
result = jsonrpcclient.request(
    'http://localhost:3003/remoteCall', 'getdata.zgl', '2018-12-12 13:53:59')  # 总功率
print(result.data.result)
'''
result2 = jsonrpcclient.request(
    'http://localhost:3003/remoteCall', 'getdata.dlz', '2018-12-12 13:53:59', '2018-12-12 13:55:59', 466117)
print(result2.data.result)
'''
result3 = jsonrpcclient.request(
    'http://localhost:3003/remoteCall', 'getdata.equipdata', '2018-12-12 13:53:59', '2018-12-12 13:55:59', 466117)
print(result3.data.result)

result4 = jsonrpcclient.request(
    'http://localhost:3003/remoteCall', 'getdata.dwsx_situation')
print(result4.data.result)

result5 = jsonrpcclient.request(
    'http://localhost:3003/remoteCall', 'getdata.dqsx_situation')
print(result5.data.result)

result6 = jsonrpcclient.request(
    'http://localhost:3003/remoteCall', 'getdata.ydjt_analysis')
print(result6.data.result)

result7 = jsonrpcclient.request(
    'http://localhost:3003/remoteCall', 'getdata.gfydl_analysis')
print(result7.data.result)

result8 = jsonrpcclient.request(
    'http://localhost:3003/remoteCall', 'getdata.equip_proprietor', 466117)
print(result8.data.result)

result9 = jsonrpcclient.request(
    'http://localhost:3003/remoteCall', 'getdata.loc_ydl_analysis')
print(result9.data.result)


result10 = jsonrpcclient.request(
    'http://localhost:3003/remoteCall', 'getdata.ydl24_situation')
print(result10.data.result)

#胎压服务
result11 = jsonrpcclient.request(
    'http://localhost:3003/remoteCall', 'getdata.cal_TP_data','2018-12-12 13:53:59','2018-12-13 13:53:59',15821)
print(result11.data.result)

#返回指定collection全表内容
result12 = jsonrpcclient.request(
    'http://localhost:3003/remoteCall', 'getdata.return_all_collection_data','PT_NETTHING_DEVICE_TYPE')
print(result12.data.result)

#返回指定userid绑定的所有物联网对象的信息
result13 = jsonrpcclient.request(
    'http://localhost:3003/remoteCall', 'getdata.return_netthing_object','XM0001')
print(result13.data.result)

# 测试登录
result14 = jsonrpcclient.request(
    'http://localhost:3003/remoteCall', 'ILoginService.Login_login', '管理员1号', '123456', 'gov_web', 'web', '123.123.123.123')
print(result14.data.result)

result15 = jsonrpcclient.request(
    'http://localhost:3003/remoteCall', 'test.getsession')
print(result15.data.result)
'''
